import copy
import time

import utils.randomId


def getpower(power_queue, linkIdq):
    while True:
        # print(f'power_queue.get():', power_queue.get())
        powerstatus = power_queue.get()
        print(f'powerstatus:',powerstatus)
        if powerstatus == 1:
            linkId = utils.randomId.randomlinkOperateID()
            print(linkId)
            linkIdq.put(linkId)

